package com.ktjiaoyu.ktmall.service;

import com.ktjiaoyu.ktmall.entity.Product;

import java.util.List;

/**
 * @author xm
 * @date 2025/9/15
 * @Dome
 */
public interface ProductService {
    //分页查询和总数
    List<Product> findList(String title, Long categoryId, int page, int pageSize);
    int count(String title,Long categoryId);

    //根据ID查询商品详情
    Product findById(Long id);
    //新增或修改商品
    boolean saveProduct(Product product);

    //根据Id删除商品
    boolean removeById(Long id);
    //修改商品状态
    boolean updateStatus(Long id, Integer status);
}
